package Singleton;

/**
 * 饿汉式单例模式
 */
public class SingletonExample {
  private static final SingletonExample instance = new SingletonExample();

  private SingletonExample() {
  }

  private static SingletonExample getInstance(){
      return instance;
  }
}


